using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblMediaAlbum
	{
	private int stt;
	private string ten_album;
	private int idTruong;
	public tblMediaAlbum()
	{}
	public tblMediaAlbum(int stt,string ten_album,int idTruong)
	{
	this.stt = stt;
	this.ten_album = ten_album;
	this.idTruong = idTruong;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public string Ten_album{
	get { return this.ten_album;}
	set {this.ten_album=value;}
	}
	public int IdTruong{
	get { return this.idTruong;}
	set {this.idTruong=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.ten_album+"; "+this.idTruong+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblMediaAlbum me=(tblMediaAlbum)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 